import { mdb_log_dueto_time } from '../../../Classes/cla_mdb_log_dueto_time';
import { req_cur_headers_info } from '../../../Classes/cla_req_cur_headers_info';

const mdb_log_cur_user_operateTag = 'mdb_log_cur_user_operate';

type typ_crud_operate = 'add' | 'delete' | 'update' | 'create';

type typ_login_logout_operate = 'login' | 'logout';

type typ_operate_type = typ_crud_operate | typ_login_logout_operate;

export class mdb_log_cur_user_operate extends mdb_log_dueto_time {
  get [Symbol.toStringTag]() {
    return mdb_log_cur_user_operateTag;
  }

  constructor(
    cur_info: req_cur_headers_info,
    operate: typ_operate_type,
    detail_info: any
  ) {
    super(cur_info);

    this.operate = operate;

    this.detail_info = detail_info;
  }

  /**
   * 操作 类型
   */
  operate: typ_operate_type;

  /**
   * 处理 细节
   */
  detail_info: any;
}
